Skip to main content

Life inside a cluster

Terminology

TermDescription
NodeRunning instance of EES
Cluster>= 1 node
Master nodeSingle elected node in the cluster responsible for cluster wide changes (+/- index, +/- node)
Shard
  • Containers of data (stores documents)
  • Allocated to node
Primary ShardDocument store
Replica ShardReplica of primary shard

Cluster diagram

Adding failover

  • Avoid single point of failure by running multiple nodes

Horizontal scaling

Initial cluster

  • Adding one node

Horizontal scaling replicas

  • Increasing numebr of replicas

Coping with failure

Scenario: One node killed

Node failure

  • Actions:
    • One node promtoed to master (node 2)
    • Replica shards promoted to primary shard
    • Health check yellow (insufficient replicas)